package com.hex.ds.hdtp.core.app.script.analyze.converter;

import com.hex.ds.hdtp.core.app.common.enums.BasicListStatus;
import com.hex.ds.hdtp.core.app.common.util.FileUtil;
import com.hex.ds.hdtp.core.app.script.analyze.dto.request.ScriptAnalyzeListRequestDto;
import com.hex.ds.hdtp.core.app.script.analyze.dto.response.ScriptAnalyzeListResponseDto;
import com.hex.ds.hdtp.core.inf.script.analyze.po.ScriptAnalyzeListPo;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Package com.hex.ds.hdtp.core.app.script.analyze.converter
 * @ClassName IScriptAnalyzeListConverter
 * @Description 脚本分析清单DTO对象与PO对象转换器
 * @Author gj.xu
 * @Date 2023/12/8 14:18
 * @Version v2.0
 **/
@Mapper(componentModel = "spring", imports = {BasicListStatus.class, FileUtil.class})
public interface IScriptAnalyzeListConverter {
    ScriptAnalyzeListPo toScriptAnalyzeListPo(ScriptAnalyzeListRequestDto scriptAnalyzeListRequestDto);

    ScriptAnalyzeListResponseDto toScriptAnalyzeListResponseDto(ScriptAnalyzeListPo scriptAnalyzeListPo);

    List<ScriptAnalyzeListResponseDto> toScriptAnalyzeListResponseDtoList(List<ScriptAnalyzeListPo> scriptAnalyzeListPoList);
}
